/**
 * jims
 */
package com.jims.master.modules.csm.entity;

import com.jims.master.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

/**
 * 药品库存单位字典表Entity
 * @author DT
 * @version 2017-03-09
 */
public class ExpStorageDept extends DataEntity<ExpStorageDept> {

    private static final long serialVersionUID = 1L;
    private String storageCode;		// 单位代码
    private String storageName;		// 单位名称
    private String storageType;		// 单位性质
    private String storageLevel;    //库房等级 一级库房：0，二级库房：1，三级库房：2
    private String disburseNoPrefix;		// 付款单前缀
    private String disburseNoAva;		// 当前付款单号
    private String exportNoAva;		// 出库单可用流水号
    private String exportNoPrefix;		// 出库单号前缀
    private String importNoAva;		// 入库单可用流水号
    private String importNoPrefix;		// 入库单号前缀

    public ExpStorageDept() {
        super();
    }

    public ExpStorageDept(String id){
        super(id);
    }

    public String getStorageType() {
        return storageType;
    }

    public void setStorageType(String storageType) {
        this.storageType = storageType;
    }

    @Length(min=1, max=8, message="单位代码长度必须介于 1 和 8 之间")
    public String getStorageCode() {
        return storageCode;
    }

    public void setStorageCode(String storageCode) {
        this.storageCode = storageCode;
    }

    @Length(min=0, max=20, message="单位名称长度必须介于 0 和 20 之间")
    public String getStorageName() {
        return storageName;
    }

    public void setStorageName(String storageName) {
        this.storageName = storageName;
    }

    @Length(min=0, max=6, message="付款单前缀长度必须介于 0 和 6 之间")
    public String getDisburseNoPrefix() {
        return disburseNoPrefix;
    }

    public void setDisburseNoPrefix(String disburseNoPrefix) {
        this.disburseNoPrefix = disburseNoPrefix;
    }

    public String getDisburseNoAva() {
        return disburseNoAva;
    }

    public void setDisburseNoAva(String disburseNoAva) {
        this.disburseNoAva = disburseNoAva;
    }

    public String getExportNoAva() {
        return exportNoAva;
    }

    public void setExportNoAva(String exportNoAva) {
        this.exportNoAva = exportNoAva;
    }

    @Length(min=0, max=6, message="出库单号前缀长度必须介于 0 和 6 之间")
    public String getExportNoPrefix() {
        return exportNoPrefix;
    }

    public void setExportNoPrefix(String exportNoPrefix) {
        this.exportNoPrefix = exportNoPrefix;
    }

    public String getImportNoAva() {
        return importNoAva;
    }

    public void setImportNoAva(String importNoAva) {
        this.importNoAva = importNoAva;
    }

    @Length(min=0, max=6, message="入库单号前缀长度必须介于 0 和 6 之间")
    public String getImportNoPrefix() {
        return importNoPrefix;
    }

    public void setImportNoPrefix(String importNoPrefix) {
        this.importNoPrefix = importNoPrefix;
    }

    public String getStorageLevel() {
        return storageLevel;
    }

    public void setStorageLevel(String storageLevel) {
        this.storageLevel = storageLevel;
    }
}